#!/bin/bash

CLASSPATH=dist/fums.jar
CLASSPATH=$CLASSPATH:lib/groovy-1.1-BETA-1.jar
CLASSPATH=$CLASSPATH:lib/antlr-2.7.6.jar

CLASSPATH=$CLASSPATH:lib/asm-2.2.jar
CLASSPATH=$CLASSPATH:lib/asm-analysis-2.2.jar
CLASSPATH=$CLASSPATH:lib/asm-tree-2.2.jar
CLASSPATH=$CLASSPATH:lib/asm-util-2.2.jar

CLASSPATH=$CLASSPATH:lib/jcifs-1.2.14.jar
CLASSPATH=$CLASSPATH:lib/xercesImpl.jar
CLASSPATH=$CLASSPATH:lib/xml-apis.jar
CLASSPATH=$CLASSPATH:lib/activation.jar

CLASSPATH=$CLASSPATH:lib/jetty-6.1.5.jar
CLASSPATH=$CLASSPATH:lib/jetty-util-6.1.5.jar
CLASSPATH=$CLASSPATH:lib/servlet-api-2.5-6.1.5.jar

#
#CLASSPATH=$CLASSPATH:.

JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
export JAVA_HOME

GROOVY_HOME=/home/scot/projects/media/groovy-1.1-beta-2
export GROOVY_HOME

export CLASSPATH
echo $CLASSPATH
#java -cp $CLASSPATH -Djava.util.logging.config.file=logging.properties uk.co.sheitgeist.fums.server.app.Application
java -server -cp $CLASSPATH uk.co.sheitgeist.fums.server.app.Application

